<template>
  <div>
    <span>{{ obj.shopName }}</span>
    <button @click="$emit('changeCount', obj.count + 1)">+</button>
    <span>{{ obj.count }}</span>
    <button
      @click="$emit('changeCount', obj.count - 1)"
      :disabled="obj.count === 0"
    >
      -
    </button>
  </div>
</template>

<script>
export default {
  name: "LianXi3",
  components: {},
  props: {
    obj: {
      type: Object,
      require: true,
    },
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
};
</script>

<style scoped></style>
